<include file="../header" />
<body class="J_scroll_fixed">
<script>

        $(document).ready(function() {
            $('button.offlineOpenPre').click(function () {

                var orderId = $(this).attr("id");
                layer.open({

                    type: 2,
                    title: '线下购买开通',
                    maxmin: false,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['80%', '98%'],
                    content: "{:U('vip/offlineOpenPre')}&orderId="+orderId,
                    cancel: function(index){
                        window.location.reload();
                    }

                });
            });
         
     
        });

    </script>
<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>店铺</th>
            <th>推荐人员</th>
            <th>会员卡类型</th>
            <th>支付方式</th>
            <th>渠道</th>
            <th>时长</th>
            <th>价格</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.order_id}</td>
                <td>{$vo.shop_name}</td>
                <td>{$vo.sale_name}</td>
                <td>{:getEnumString($buytype, $vo['buy_type'])}</td>
                <td>{:getEnumString($paytype, $vo['pay_type'])}</td>
                <td>{:getEnumString($channel, $vo['channel'])}</td>
                <td>{$vo.term_number}&nbsp;{:getEnumString($buytype, $vo['buy_type'])}</td>
                <td>{$vo.price}</td>
                <td>
                    <button class="offlineOpenPre btn" id="{$vo['order_id']}">立即开通</button>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>